home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Entertainment / MacMud / Mud 4.0 / config.h < prev    next >
Encoding:
Text File  |  1993-03-23  |  5.6 KB  |  194 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * Define this if you want the MUDWHO-service. You have to configure it
  4.  * in mudwho.h.
  5.  */
  6. #undef MUDWHO
  7.  
  8. /*
  9.  * Define this if you want to use the improved access restriction system.
  10.  * Look at the file ACCESS.ALLOW for information. It replaces the old
  11.  * ACCESS.DENY.
  12.  */
  13. #undef ACCESS_RESTRICTED
  14.  
  15. /* Version of the game in the form xx.xx.xx (leading zeroes) gc.
  16.  * Two digits will be appended, that is the patch level.
  17.  */
  18. #define GAME_VERSION "03.01."
  19.  
  20. /*
  21.  * How to extract an unsigned char from a char *.
  22.  * If your compiler has the type 'unsigned char', then the cast-version
  23.  * is best. If you do not know, use the simple version, and the game will
  24.  * immediately terminate with a message if bad.
  25. #define EXTRACT_UCHAR(p) (*p < 0 ? *p + 0x100 : *p)
  26.  */
  27. #define EXTRACT_UCHAR(p) (*(unsigned char *)p)
  28.  
  29. /*
  30.  * What is the value of the first constant defined by yacc ? If you do not
  31.  * know, compile, and look at y.tab.h.
  32.  */
  33. #define F_OFFSET        257
  34.  
  35. /*
  36.  * Does the system have a getrusage call?
  37.  */
  38. #undef RUSAGE
  39.  
  40. /*
  41.  * Do we spend some extra memory to increase the speed of call_other() ?
  42.  *
  43.  * If this is used then two bytes extra is reserved for each call_other()
  44.  * in the stack code. These bytes will hold the function index for the 
  45.  * last call made.
  46.  *
  47.  */
  48. #define CACHE_CALL_OTHER 
  49.  
  50. /*
  51.  * If you want to put wizards in groups and give each group a subdirectory
  52.  * you should define this. Domain directorys must start witha capital
  53.  * letter, and wizards names must not.
  54.  */
  55. #define DOMAINS
  56.  
  57. /*
  58.  * Undef this if your system doesn't support Berkley type symlinks.
  59.  */
  60. #define SYMLINKS
  61.  
  62. /*
  63.  * Define what ioctl to use against tty's.
  64.  */
  65.  
  66. #undef USE_TIOCGETP    /* BSD */
  67. #define USE_TCGETA     /* SYSV */
  68.  
  69.  
  70. /*
  71.  * Some LPmuds on sun4 and sparcstations have had problems with the
  72.  * call of inet_ntoa() in comm1.c.
  73.  * If the game crash in query_ip_number() wen using inet_ntoa(),
  74.  * then undefine the following symbol.
  75.  * The query_ip_number() is called when doing the 'people' command
  76.  * for example.
  77.  */
  78. #define INET_NTOA_OK 1
  79.  
  80. /*
  81.  * Define LOG_SHOUT if you want all shouts to be logged in
  82.  * mudlib/log/SHOUTS.
  83.  */
  84. #undef LOG_SHOUT
  85.  
  86. /*
  87.  * When uploading files, we want fast response; however, normal players
  88.  * shouldn't be able to hog the system in this way.  Define ALLOWED_ED_CMDS
  89.  * to be the ratio of the no of ed cmds executed per player cmd, and
  90.  * MAX_CMDS_PER_BEAT to be the bax no of buffered player commands the
  91.  * system will accept in each heartbeat interval.
  92.  */
  93.  
  94. #define    ALLOWED_ED_CMDS        20
  95. #define    MAX_CMDS_PER_BEAT    5 /* not implemented yet :-( */
  96.  
  97. /*
  98.  * Define SYSV if you are running system V with a lower release level than
  99.  * Sys V.4.
  100.  */
  101.  
  102. #define SYSV
  103.  
  104. /*
  105.  * Define FCHMOD_MISSING only if your system doesn't have fchmod().
  106.  */
  107.  
  108. #define FCHMOD_MISSING
  109.  
  110. /*
  111.  * Define COMPAT_MODE if you are using mudlib 2.4.6 or older. This
  112.  * replaces the old command line option -o.
  113.  */
  114.  
  115. #define COMPAT_MODE
  116.  
  117. #define NO_IP_DEMON
  118.  
  119. /*
  120.  * Use the NLHack patches made to the 2.4.5 driver
  121.  */
  122.  
  123. #undef NLHACK
  124.  
  125. /*
  126.  * Define this if you don't have (or want) sockets.
  127.  */
  128. #undef NOCOMM
  129.  
  130. /*
  131.  * These have been transferred to the startup file
  132.  */   
  133.  
  134. #define MUDHOSTNAME                (configs[0].u.cf_str)
  135. #define MASTER_OBJECT            (configs[1].u.cf_str)
  136. #define SIMUL_EFUN                (configs[2].u.cf_str)
  137. #define INIT_FILE                (configs[3].u.cf_str)
  138. #define SWAP_FILE                (configs[4].u.cf_str)
  139. #define FORCE_INCLUDE            (configs[5].u.cf_str)
  140. #define MUD_LIB                    (configs[6].u.cf_str)
  141. #define PLAYER_DIR                (configs[7].u.cf_str)
  142. #define DOMAIN_DIR                (configs[8].u.cf_str)
  143. #define DEFAULT_CASTLE            (configs[9].u.cf_str)
  144. #define DEFAULT_WORKROOM        (configs[10].u.cf_str)
  145. #define LOG_ADMIN_FILES            (configs[11].u.cf_str)
  146. #define MAX_LOCAL_LOG_SIZE        (configs[12].u.cf_int)
  147. #define MAX_GLOBAL_LOG_SIZE        (configs[13].u.cf_int)
  148. #define READ_FILE_MAX_SIZE        (configs[14].u.cf_int)
  149. #define TIME_TO_CLEAN_UP        (configs[15].u.cf_int)
  150. #define TIME_TO_SWAP            (configs[16].u.cf_int)
  151. #define TIME_TO_RESET            (configs[17].u.cf_int)
  152. #define EVALUATOR_STACK_SIZE    (configs[18].u.cf_int)
  153. #define COMPILER_STACK_SIZE        (configs[19].u.cf_int)
  154. #define MAX_BITS                (configs[20].u.cf_int)
  155. #define LIVING_HASH_SIZE        (configs[21].u.cf_int)
  156. #define PORTNO                    (configs[22].u.cf_int)
  157. #define MAX_LOCAL                (configs[23].u.cf_int)
  158. #define MAX_COST                (configs[24].u.cf_int)
  159. #define MAX_ARRAY_SIZE            (configs[25].u.cf_int)
  160. #define MAX_PLAYERS                (configs[26].u.cf_int)
  161. #define    HTABLE_SIZE                (configs[27].u.cf_int)
  162. #define OTABLE_SIZE                (configs[28].u.cf_int)
  163. #define MAX_BYTE_TRANSFER         (configs[29].u.cf_int)
  164. #define MAX_STRING_LENGTH        (configs[30].u.cf_int)
  165. #define RESERVED_SIZE            (configs[31].u.cf_int)
  166. #define MAX_TRACE                (configs[32].u.cf_int)
  167. #define DEBUG_LEVEL                (configs[33].u.cf_int)
  168. #define TRACE_LEVEL                (configs[34].u.cf_int)
  169. #define COMP_TRACE                (configs[35].u.cf_int)
  170. #define AUTO_RESTART            (configs[36].u.cf_int)
  171. #define RUNTIME_MEMORY            (configs[37].u.cf_int)
  172. #define MULTI_CONNECTION        (configs[38].u.cf_int)
  173. #define WHAT_MESSAGE            (configs[39].u.cf_int)
  174.  
  175. #define fopen(a,b) macfopen(a,b)
  176. #define open(a,b) macopen(a,b)
  177.  
  178. #define check_string_lengths(l1, l2) \
  179.     if (((l1) + (l2)) > MAX_STRING_LENGTH) error("String too large.\n");
  180.  
  181. /************************************************************************/
  182. /*    END OF CONFIG -- DO NOT ALTER ANYTHING BELOW THIS LINE        */
  183. /************************************************************************/
  184.  
  185. /*
  186.  * some generic large primes used by various hash functions in different files
  187.  * You can alter these if you know of a better set of numbers!  Be sure
  188.  * they are primes...
  189.  */
  190.  
  191. #define    P1        701    /* 3 large, different primes */
  192. #define    P2        14009    /* There's a file of them here somewhere :-) */
  193. #define    P3        54001
  194.